<include file="public@header" />
<style>
    .gw_num {
        border: 1px solid #dbdbdb;
        width: 110px;
        line-height: 26px;
        overflow: hidden;
    }

    .gw_num em {
        display: block;
        height: 26px;
        width: 26px;
        float: left;
        color: #7A7979;
        border-right: 1px solid #dbdbdb;
        text-align: center;
        cursor: pointer;
    }

    .gw_num .num {
        display: block;
        float: left;
        text-align: center;
        width: 52px;
        font-style: normal;
        font-size: 14px;
        line-height: 24px;
        border: 0;
    }

    .gw_num em.add {
        float: right;
        border-right: 0;
        border-left: 1px solid #dbdbdb;
    }
</style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{$uid}的推荐列表</h5>
                    </div>
                    <div class="ibox-content">
                        
                        <form class="js-ajax-form" action="" method="post">
                            <table class="table table-hover table-bordered table-list">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>上级推荐人ID</th>
                                        <th>{:lang('USERNAME')}</th>
                                        <th>{:lang('NICENAME')}</th>
                                        <th>{:lang('AVATAR')}</th>
                                        <th>{:lang('EMAIL')}</th>
                                        <th>手机</th>
                                        <th>量化盈利</th>
                                        <th>分润收入</th>
                                        <th>其它</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td style="color:red">直推用户</td>
                                    </tr>
                                    <foreach name="list" item="vo">
                                        <tr>
                                            <td>{$vo.id}</td>
                                            <td>{$vo.parent_user_id}</td>
                                            <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
                                            </td>
                                            <td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
                                            <td>
                                                <empty name="$vo['avatar']">
                                                    <img width="25" height="25" src="__STATIC__/images/headicon.png">
                                                    <else />
                                                    <a
                                                        href="javascript:parent.imagePreviewDialog('{:cmf_get_image_url($vo['avatar'])}')">
                                                        <img width="25" height="25"
                                                            src="{:cmf_get_image_url($vo['avatar'])}" />
                                                    </a>
                                                </empty>
                                            </td>
                                            <td>{$vo.user_email}</td>
                                            <td>{$vo.mobile}</td>
                                            <td>
                                                <php>echo getRevenue($vo['id'])</php> USDT
                                            </td>
                                            <td>
                                                <php>echo getReturnRevenue($vo['id'])</php> USDT

                                            </td>
                                            <td>
                                                {:lang('REGISTRATION_TIME')}: {:date('Y-m-d
                                                H:i:s',$vo['create_time'])}<br />
                                                {:lang('LAST_LOGIN_TIME')}: {:date('Y-m-d
                                                H:i:s',$vo['last_login_time'])}<br />
                                                {:lang('LAST_LOGIN_IP')}: {$vo.last_login_ip}
                                            </td>   
                                        </tr>
                                    </foreach>
                                    <tr>
                                        <td style="color:red">间推用户</td>
                                    </tr>
                                    <foreach name="list2" item="vo">
                                        <tr>
                                            <td>{$vo.id}</td>
                                            <td>{$vo.parent_user_id}</td>
                                            <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
                                            </td>
                                            <td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
                                            <td>
                                                <empty name="$vo['avatar']">
                                                    <img width="25" height="25" src="__STATIC__/images/headicon.png">
                                                    <else />
                                                    <a
                                                        href="javascript:parent.imagePreviewDialog('{:cmf_get_image_url($vo['avatar'])}')">
                                                        <img width="25" height="25"
                                                            src="{:cmf_get_image_url($vo['avatar'])}" />
                                                    </a>
                                                </empty>
                                            </td>
                                            <td>{$vo.user_email}</td>
                                            <td>{$vo.mobile}</td>

                                            <td>
                                                <php>echo getRevenue($vo['id'])</php> USDT
                                            </td>
                                            <td>
                                                <php>echo getReturnRevenue($vo['id'])</php> USDT

                                            </td>
                                            <td>
                                                {:lang('REGISTRATION_TIME')}: {:date('Y-m-d
                                                H:i:s',$vo['create_time'])}<br />
                                                {:lang('LAST_LOGIN_TIME')}: {:date('Y-m-d
                                                H:i:s',$vo['last_login_time'])}<br />
                                                {:lang('LAST_LOGIN_IP')}: {$vo.last_login_ip}
                                            </td>                                            
                                        </tr>
                                    </foreach>                                    
                                </tbody>
                                <tfoot>

                                </tfoot>
                            </table>
                            
                    </div>
                    </form>


                </div>
            </div>
        </div>
    </div>
    <script src="__STATIC__/js/admin.js"></script>

    <script>

    </script>
</body>

</html>